﻿<?php
	$sql="UPDATE tbl_config SET content='$_POST[content]',`name`='$_POST[name]' WHERE `key`='$_POST[key]'";
	$res=mysql_query($sql);
			
	mysql_close();
	
	if(!$res)
		echo "<script>history.go(-1)</script>";
	else 
		echo "<script>window.location='?zone=config'</script>";
?>